<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader">
    <div class="pull-right">
        <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
    </div>
</div>
<div class="bjui-pageContent">
    <form action="<?php echo U('save_basic');?>" data-toggle="validate" data-alertmsg="false" class="navtabForm">
        <div class="form-group">
            <label class="x100">会员注册送积分:</label>
            <input type="text" name="register_integral" data-rule="required;number" value="<?php echo ($va["register_integral"]); ?>"/>
        </div>
        <div class="form-group">
            <label class="x100">附件上传大小:</label>
            <select name="upload_max" data-toggle="selectpicker">
                <option value="1">1M</option>
                <option value="2" <?php if($va["upload_max"] == '2'): ?>selected="selected"<?php endif; ?>>2M</option>
                <option value="3" <?php if($va["upload_max"] == '3'): ?>selected="selected"<?php endif; ?>>3M</option>
                <option value="4" <?php if($va["upload_max"] == '4'): ?>selected="selected"<?php endif; ?>>4M</option>
                <option value="5" <?php if($va["upload_max"] == '5'): ?>selected="selected"<?php endif; ?>>5M</option>
                <option value="10" <?php if($va["upload_max"] == '10'): ?>selected="selected"<?php endif; ?>>10M</option>
                <option value="50" <?php if($va["upload_max"] == '50'): ?>selected="selected"<?php endif; ?>>50M</option>
                <option value="100" <?php if($va["upload_max"] == '100'): ?>selected="selected"<?php endif; ?>>100M</option>
            </select>
        </div>
        <div class="form-group">
            <label class="x100">默认库存:</label>
            <input type="text" name="default_store" data-rule="required" value="<?php echo ($va["default_store"]); ?>" />
        </div>
        <div class="form-group">
            <label class="x100">库存预警数:</label>
            <input type="text" name="min_store" data-rule="required" value="<?php echo ($va["min_store"]); ?>" />
            <span class="text-warning">注:当商品数量少于预警数时，会在系统后台首页<库存预警>显示</span>
        </div>
        <div class="form-group">
            <label class="x100">商品货号前缀:</label>
            <input type="text" name="shop_number" data-rule="required" value="<?php echo ($va["shop_number"]); ?>" />
            <span class="text-warning">注:只取前两位</span>
        </div>
        <div class="form-group">
            <label class="x100">发票税率:</label>
            <input type="text" name="rax" data-rule="required"  class="w100" value="<?php echo ($va["rax"]); ?>"/> %
            <span class="text-warning">当买家需要发票的时候就要增加<商品金额>*<税率>的费用</span>
        </div>
       <div class="form-group">
            <label class="x100">退款原因:</label>
            <input type="text" name="hot_keywords" data-rule="required" placeholder="商品不好|想买其他商品" value="<?php echo ($va["hot_keywords"]); ?>"/>
            <span class="text-warning">注:多个退款原因,请使用|分隔.</span>
        </div>
        <div class="form-group">
            <label class="x100">提交订单后:</label>
            <input type="text" name="sub_order_after" data-rule="number" maxlength="3" class="w100" value="<?php echo ($va["sub_order_after"]); ?>"/> 小时后没付款系统自动删掉订单
        </div>
        <div class="form-group">
            <label class="x100">订单付款后:</label>
            <input type="text" name="pay_order_after" data-rule="required"  maxlength="3" class="w100" value="<?php echo ($va["pay_order_after"]); ?>"/> 小时后不能退款
        </div>
        <div class="form-group">
            <label class="x100">管理员重置后的新密码:</label>
            <input type="text" name="admin_password" data-rule="required" placeholder="" value="<?php echo ($va["admin_password"]); ?>"/>
        </div>
        <div class="form-group">
            <label class="x100">用户重置后的新密码:</label>
            <input type="text" name="user_password" data-rule="required" placeholder="" value="<?php echo ($va["user_password"]); ?>"/>
        </div>
        
        
    </form>
</div>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>